We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentdea5593 commitfeba3f9Copy full SHA for feba3f9
Coder-Desktop/Coder-DesktopTests/FileSyncDaemonTests.swift
@@ -61,6 +61,7 @@ class FileSyncDaemonTests {
61
#expect(statesEqual(daemon.state,.stopped))
62
#expect(daemon.sessionState.count==0)
63
64
+varpromptMessages:[String]=[]
65
tryawait daemon.createSession(
66
arg:.init(
67
alpha:.init(
@@ -71,9 +72,16 @@ class FileSyncDaemonTests {
71
72
path: mutagenBetaDirectory.path(),
73
protocolKind:.local
74
)
-)
75
+),
76
+ promptCallback:{
77
+ promptMessages.append($0)
78
+}
79
80
81
+ // There should be at least one prompt message
82
+ // Usually "Creating session..."
83
+ #expect(promptMessages.count>0)
84
+
85
// Daemon should have started itself
86
#expect(statesEqual(daemon.state,.running))
87
#expect(daemon.sessionState.count==1)