test(server): stabilize provider shutdown assertions
This commit is contained in:
1 parent
40c5fc2121
commit
f891d526de
2 files changed
+2
-2
No files matched your search
@@ -1227,7 +1227,7 @@ it.effect("flushes managed native logs when the adapter layer shuts down", () =>
|
||||
yield* Scope.close(scope, Exit.void);
|
||||
scopeClosed = true;
|
||||
|
||||
const threadLogPath = NodePath.join(tempDir, "thread-logger.log");
|
||||
const threadLogPath = NodePath.join(tempDir, "provider-native-thread-logger.log");
|
||||
NodeAssert.equal(NodeFS.existsSync(threadLogPath), true);
|
||||
const contents = NodeFS.readFileSync(threadLogPath, "utf8");
|
||||
NodeAssert.match(contents, /NTIVE: .*"message":"native flush test"/);
|
||||
|
||||
@@ -124,7 +124,7 @@ function waitForJsonLogMatch(
|
||||
if (requests.some(predicate)) {
|
||||
return requests;
|
||||
}
|
||||
yield* Effect.yieldNow;
|
||||
yield* Effect.sleep("10 millis").pipe(TestClock.withLive);
|
||||
}
|
||||
return yield* Effect.promise(() => readJsonLines(filePath));
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user