use static appview did for e2e
This commit is contained in:
@@ -5,6 +5,8 @@ import path from 'node:path'
|
||||
import {AtUri, BskyAgent} from '@atproto/api'
|
||||
import {type TestBsky, TestNetwork} from '@atproto/dev-env'
|
||||
|
||||
import {E2E_APPVIEW_DID} from './constants.ts'
|
||||
|
||||
export interface TestUser {
|
||||
email: string
|
||||
did: string
|
||||
@@ -83,6 +85,13 @@ export async function createServer(
|
||||
plc: {port: port2},
|
||||
})
|
||||
|
||||
if (testNet.bsky.serverDid !== E2E_APPVIEW_DID) {
|
||||
await testNet.close()
|
||||
throw new Error(
|
||||
`E2E AppView DID changed from ${E2E_APPVIEW_DID} to ${testNet.bsky.serverDid}. Update E2E_APPVIEW_DID in dev-env/constants.ts.`,
|
||||
)
|
||||
}
|
||||
|
||||
// DISABLED - looks like dev-env added this and now it conflicts
|
||||
// add the test mod authority
|
||||
// const agent = new BskyAgent({service: pdsUrl})
|
||||
|
||||
Reference in New Issue
Block a user