Skip to content

Commit

Permalink
chore: refactor after review
Browse files Browse the repository at this point in the history
  • Loading branch information
IronCore864 committed Sep 19, 2024
1 parent d54ce7d commit e6c29dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ identities:
}

_, stderrCh := pebbleRun(t, pebbleDir, "--identities="+filepath.Join(pebbleDir, identitiesFileName))
waitForLog(t, stderrCh, "pebble", "Started daemon", 3*time.Second)

// wait for log "Started daemon" like in other test cases then immediately run `pebble identity` would sometimes
// fail because the identities are not fully seeded. Waiting for the next log "POST /v1/services" can guarantee
// identities are seeded when running the `pebble identity` command without sleeping for a short period of time.
waitForLog(t, stderrCh, "pebble", "POST /v1/services", 3*time.Second)

output := runPebbleCommand(t, pebbleDir, "identity", "bob")
expected := `
Expand Down

0 comments on commit e6c29dc

Please sign in to comment.