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 {
61
61
#expect( statesEqual ( daemon. state, . stopped) )
62
62
#expect( daemon. sessionState. count == 0 )
63
63
64
+ var promptMessages : [ String ] = [ ]
64
65
try await daemon. createSession (
65
66
arg: . init(
66
67
alpha: . init(
@@ -71,9 +72,16 @@ class FileSyncDaemonTests {
71
72
path: mutagenBetaDirectory. path ( ) ,
72
73
protocolKind: . local
73
74
)
74
- )
75
+ ) ,
76
+ promptCallback: {
77
+ promptMessages. append ( $0)
78
+ }
75
79
)
76
80
81
+ // There should be at least one prompt message
82
+ // Usually "Creating session..."
83
+ #expect( promptMessages. count > 0 )
84
+
77
85
// Daemon should have started itself
78
86
#expect( statesEqual ( daemon. state, . running) )
79
87
#expect( daemon. sessionState. count == 1 )
You can’t perform that action at this time.
0 commit comments