We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1063155 commit 65e7b78Copy full SHA for 65e7b78
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
+ var promptMessages: [String] = []
65
try await 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)
0 commit comments