Skip to content

Commit eb4aa2d

Browse files
committed
added log msg
1 parent fb8467a commit eb4aa2d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/slo/native/query/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ func main() {
3737
ctx, cancel = context.WithTimeout(ctx, time.Duration(cfg.Time)*time.Second)
3838
defer cancel()
3939

40+
go func() {
41+
<-ctx.Done()
42+
log.Println("exiting...")
43+
}()
44+
4045
s, err := NewStorage(ctx, cfg, cfg.ReadRPS+cfg.WriteRPS, label)
4146
if err != nil {
4247
panic(fmt.Errorf("create storage failed: %w", err))

0 commit comments

Comments
 (0)