Skip to content

Commit 65e7b78

Browse files
committed
tests
1 parent 1063155 commit 65e7b78

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Coder-Desktop/Coder-DesktopTests/FileSyncDaemonTests.swift

+9-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class FileSyncDaemonTests {
6161
#expect(statesEqual(daemon.state, .stopped))
6262
#expect(daemon.sessionState.count == 0)
6363

64+
var promptMessages: [String] = []
6465
try await daemon.createSession(
6566
arg: .init(
6667
alpha: .init(
@@ -71,9 +72,16 @@ class FileSyncDaemonTests {
7172
path: mutagenBetaDirectory.path(),
7273
protocolKind: .local
7374
)
74-
)
75+
),
76+
promptCallback: {
77+
promptMessages.append($0)
78+
}
7579
)
7680

81+
// There should be at least one prompt message
82+
// Usually "Creating session..."
83+
#expect(promptMessages.count > 0)
84+
7785
// Daemon should have started itself
7886
#expect(statesEqual(daemon.state, .running))
7987
#expect(daemon.sessionState.count == 1)

0 commit comments

Comments
 (0)