use static appview did for e2e

This commit is contained in:
Samuel Newman
2026-09-03 15:05:43 +03:00
parent 8af501de62
commit b214a88a42
6 changed files with 26 additions and 73 deletions
+9
View File
@@ -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})