Skip to content

Commit 0657a41

Browse files
committed
sessions tests updated to match status
1 parent 57e65ff commit 0657a41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/bin/sessions.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('Session Token Refreshing', () => {
8181
dataDir,
8282
);
8383
expect(result.exitCode).toBe(0);
84-
expect(result.stdout).toContain('online');
84+
expect(result.stdout).toContain('LIVE');
8585

8686
const buff = await fs.promises.readFile(sessionFile);
8787
const newToken = buff.toString() as SessionToken;
@@ -99,7 +99,7 @@ describe('Session Token Refreshing', () => {
9999
await sleep(1100);
100100
const result = await testUtils.pkStdio(command, {}, dataDir);
101101
expect(result.exitCode).toBe(0);
102-
expect(result.stdout).toContain('online');
102+
expect(result.stdout).toContain('LIVE');
103103

104104
const buff = await fs.promises.readFile(sessionFile);
105105
const newToken = buff.toString() as SessionToken;
@@ -116,7 +116,7 @@ describe('Session Token Refreshing', () => {
116116

117117
let result = await testUtils.pkStdio(command, {}, dataDir);
118118
expect(result.exitCode).toBe(0);
119-
expect(result.stdout).toContain('online');
119+
expect(result.stdout).toContain('LIVE');
120120

121121
tokenBuffer = await fs.promises.readFile(sessionFile);
122122
const token1 = tokenBuffer.toString() as SessionToken;
@@ -129,7 +129,7 @@ describe('Session Token Refreshing', () => {
129129
await sleep(1100);
130130
result = await testUtils.pkStdio(command, {}, dataDir);
131131
expect(result.exitCode).toBe(0);
132-
expect(result.stdout).toContain('online');
132+
expect(result.stdout).toContain('LIVE');
133133

134134
tokenBuffer = await fs.promises.readFile(sessionFile);
135135
const token2 = tokenBuffer.toString() as SessionToken;

0 commit comments

Comments
 (0)