Skip to content

Commit 7124a24

Browse files
committed
fix
1 parent f64aaac commit 7124a24

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/test/integration/configAdmin.test.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,18 @@ describe('Config Admin Endpoints Integration Tests', () => {
5555

5656
config = await getConfiguration(true)
5757
database = await Database.init(config.dbConfig)
58-
oceanNode = OceanNode.getInstance(config, database)
58+
// Force a new singleton so this suite sees env-based config (e.g. ALLOWED_ADMINS);
59+
// an instance from an earlier test file would otherwise keep stale config.
60+
oceanNode = OceanNode.getInstance(
61+
config,
62+
database,
63+
null,
64+
null,
65+
null,
66+
null,
67+
null,
68+
true
69+
)
5970
})
6071

6172
after(async () => {

0 commit comments

Comments
 (0)