Skip to content

Commit 0c4fd5b

Browse files
committed
Use SuccessMarkerText() in instance info test expectations
1 parent ea674bf commit 0c4fd5b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

internal/output/plain_format_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestFormatEventLine(t *testing.T) {
120120
ContainerName: "localstack-aws",
121121
Uptime: 4*time.Minute + 23*time.Second,
122122
},
123-
want: "✓ LocalStack AWS Emulator is running (localhost.localstack.cloud:4566)\n UPTIME: 4m 23s · CONTAINER: localstack-aws · VERSION: 4.14.1",
123+
want: SuccessMarkerText() + " LocalStack AWS Emulator is running (localhost.localstack.cloud:4566)\n UPTIME: 4m 23s · CONTAINER: localstack-aws · VERSION: 4.14.1",
124124
wantOK: true,
125125
},
126126
{
@@ -129,7 +129,7 @@ func TestFormatEventLine(t *testing.T) {
129129
EmulatorName: "LocalStack AWS Emulator",
130130
Host: "127.0.0.1:4566",
131131
},
132-
want: "✓ LocalStack AWS Emulator is running (127.0.0.1:4566)",
132+
want: SuccessMarkerText() + " LocalStack AWS Emulator is running (127.0.0.1:4566)",
133133
wantOK: true,
134134
},
135135
{

internal/output/plain_sink_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func TestPlainSink_EmitsInstanceInfoEvent(t *testing.T) {
163163
Uptime: 4*time.Minute + 23*time.Second,
164164
})
165165

166-
expected := "✓ LocalStack AWS Emulator is running (localhost.localstack.cloud:4566)\n UPTIME: 4m 23s · CONTAINER: localstack-aws · VERSION: 4.14.1\n"
166+
expected := SuccessMarkerText() + " LocalStack AWS Emulator is running (localhost.localstack.cloud:4566)\n UPTIME: 4m 23s · CONTAINER: localstack-aws · VERSION: 4.14.1\n"
167167
assert.Equal(t, expected, out.String())
168168
assert.NoError(t, sink.Err())
169169
})
@@ -177,7 +177,7 @@ func TestPlainSink_EmitsInstanceInfoEvent(t *testing.T) {
177177
Host: "127.0.0.1:4566",
178178
})
179179

180-
expected := "✓ LocalStack AWS Emulator is running (127.0.0.1:4566)\n"
180+
expected := SuccessMarkerText() + " LocalStack AWS Emulator is running (127.0.0.1:4566)\n"
181181
assert.Equal(t, expected, out.String())
182182
assert.NoError(t, sink.Err())
183183
})

0 commit comments

Comments
 (0)