Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65e7b78

Browse files
committed
tests
1 parent1063155 commit65e7b78

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎Coder-Desktop/Coder-DesktopTests/FileSyncDaemonTests.swift

Lines changed: 9 additions & 1 deletion
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+
varpromptMessages:[String]=[]
6465
tryawait 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)

[8]ページ先頭

©2009-2025 Movatter.jp