Skip to content

Commit 761daaf

Browse files
committed
better output
1 parent 560f0b7 commit 761daaf

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

maintnotifications/e2e/scenario_endpoint_types_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func TestEndpointTypesPushNotifications(t *testing.T) {
205205
if err != nil {
206206
ef("[FI] Failover action failed for %s: %v", endpointTest.name, err)
207207
}
208-
p("[FI] Failover action completed for %s: %v", endpointTest.name, status)
208+
p("[FI] Failover action completed for %s: %+v", endpointTest.name, status)
209209

210210
// Test migration with this endpoint type
211211
p("Testing migration with %s endpoint type...", endpointTest.name)
@@ -227,7 +227,7 @@ func TestEndpointTypesPushNotifications(t *testing.T) {
227227
if err != nil {
228228
ef("[FI] Migrate action failed for %s: %v", endpointTest.name, err)
229229
}
230-
p("[FI] Migrate action completed for %s: %v", endpointTest.name, status)
230+
p("[FI] Migrate action completed for %s: %+v", endpointTest.name, status)
231231

232232
// Wait for MIGRATING notification
233233
match, found = logCollector.WaitForLogMatchFunc(func(s string) bool {
@@ -321,7 +321,7 @@ func TestEndpointTypesPushNotifications(t *testing.T) {
321321
if err != nil {
322322
ef("Bind action failed for %s: %v", endpointTest.name, err)
323323
}
324-
p("Bind action completed for %s: %v", endpointTest.name, bindStatus)
324+
p("Bind action completed for %s: %+v", endpointTest.name, bindStatus)
325325

326326
// Continue traffic for analysis
327327
time.Sleep(30 * time.Second)

maintnotifications/e2e/scenario_push_notifications_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func TestPushNotifications(t *testing.T) {
166166
if err != nil {
167167
ef("[FI] Failover action failed: %v", err)
168168
}
169-
p("[FI] Failover action completed: %v", status)
169+
p("[FI] Failover action completed: %+v", status)
170170

171171
p("FAILING_OVER / FAILED_OVER notifications test completed successfully")
172172

@@ -203,7 +203,7 @@ func TestPushNotifications(t *testing.T) {
203203
if err != nil {
204204
ef("[FI] Migrate action failed: %v", err)
205205
}
206-
p("[FI] Migrate action completed: %v", status)
206+
p("[FI] Migrate action completed: %+v", status)
207207

208208
go func() {
209209
p("Waiting for MIGRATED notification on conn %d with seqID %d...", connIDToObserve, seqIDToObserve+1)
@@ -379,7 +379,7 @@ func TestPushNotifications(t *testing.T) {
379379
ef("Bind action failed: %v", err)
380380
}
381381

382-
p("Bind action completed: %v", bindStatus)
382+
p("Bind action completed: %+v", bindStatus)
383383

384384
p("MOVING notification test completed successfully")
385385

maintnotifications/e2e/scenario_stress_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ func TestStressPushNotifications(t *testing.T) {
199199
}
200200

201201
actionMutex.Lock()
202-
actionResults = append(actionResults, fmt.Sprintf("%s: %s", actionName, status.Status))
202+
actionResults = append(actionResults, fmt.Sprintf("%s: %+v", actionName, status))
203203
actionMutex.Unlock()
204204

205-
p("[FI] %s action completed: %s", actionName, status.Status)
205+
p("[FI] %s action completed: %+v", actionName, status)
206206
}(action.name, action.action, action.delay)
207207
}
208208

maintnotifications/e2e/scenario_timeout_configs_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func TestTimeoutConfigurationsPushNotifications(t *testing.T) {
209209
if err != nil {
210210
ef("[FI] Failover action failed for %s: %v", timeoutTest.name, err)
211211
}
212-
p("[FI] Failover action completed for %s: %s", timeoutTest.name, status.Status)
212+
p("[FI] Failover action completed for %s: %+v", timeoutTest.name, status)
213213

214214
// Continue traffic to observe timeout behavior
215215
p("Continuing traffic for %v to observe timeout behavior...", timeoutTest.relaxedTimeout*2)
@@ -236,7 +236,7 @@ func TestTimeoutConfigurationsPushNotifications(t *testing.T) {
236236
ef("[FI] Migrate action failed for %s: %v", timeoutTest.name, err)
237237
}
238238

239-
p("[FI] Migrate action completed for %s: %s", timeoutTest.name, status.Status)
239+
p("[FI] Migrate action completed for %s: %+v", timeoutTest.name, status)
240240

241241
// Wait for MIGRATING notification
242242
match, found = logCollector.WaitForLogMatchFunc(func(s string) bool {
@@ -265,7 +265,7 @@ func TestTimeoutConfigurationsPushNotifications(t *testing.T) {
265265
if err != nil {
266266
ef("[FI] Bind action failed for %s: %v", timeoutTest.name, err)
267267
}
268-
p("[FI] Bind action completed for %s: %s", timeoutTest.name, status.Status)
268+
p("[FI] Bind action completed for %s: %+v", timeoutTest.name, status)
269269
// waiting for moving notification
270270
match, found = logCollector.MatchOrWaitForLogMatchFunc(func(s string) bool {
271271
return strings.Contains(s, logs2.ProcessingNotificationMessage) && notificationType(s, "MOVING")

maintnotifications/e2e/scenario_tls_configs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func ТestTLSConfigurationsPushNotifications(t *testing.T) {
199199
if err != nil {
200200
ef("[FI] Migrate action failed for %s: %v", tlsTest.name, err)
201201
}
202-
p("[FI] Migrate action completed for %s: %s", tlsTest.name, status.Status)
202+
p("[FI] Migrate action completed for %s: %+v", tlsTest.name, status)
203203

204204
// Continue traffic for a bit to observe TLS behavior
205205
time.Sleep(5 * time.Second)

0 commit comments

Comments
 (0)