File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Coder-Desktop/Coder-DesktopTests Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments