Skip to content

Commit 6c527dc

Browse files
committed
log starts too
1 parent c54c692 commit 6c527dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chaos_tests/chaos_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ func PostgresChaosMonkey(t *testing.T, ctx context.Context, wg *sync.WaitGroup)
113113
downTime := time.Duration(rand.Float64()*2) * time.Second
114114

115115
// Stop PostgreSQL
116-
t.Logf("🐒 Chaos Monkey: Stopping PostgreSQL")
117116
require.Eventually(t, func() bool {
118117
stopPostgres(t, cliPath)
119118
return true
120119
}, 5*time.Second, 100*time.Millisecond)
120+
t.Logf("🐒 Chaos Monkey: Stopped PostgreSQL")
121121

122122
// Sleep for random down time
123123
select {
@@ -127,6 +127,7 @@ func PostgresChaosMonkey(t *testing.T, ctx context.Context, wg *sync.WaitGroup)
127127
startPostgres(t, cliPath)
128128
return true
129129
}, 5*time.Second, 100*time.Millisecond)
130+
t.Logf("🐒 Chaos Monkey: Starting PostgreSQL")
130131
case <-ctx.Done():
131132
// Ensure PostgreSQL is started before exiting
132133
require.Eventually(t, func() bool {

0 commit comments

Comments
 (0)