Skip to content

Commit

Permalink
fix: use . in --infinite links in the history command
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Jun 26, 2024
1 parent 8a1be4d commit a5ad37b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (r *Root) RunHistory(cmd *cobra.Command, args []string) {
}

func (r *Root) UpdateHistory() error {
ids := r.ctx.History.ToString("+")
ids := r.ctx.History.ToString(".")
if ids == "" {
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/ping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func Test_Execute_Ping_Infinite(t *testing.T) {
assert.NoError(t, err)
expectedHistory = createDefaultExpectedHistoryLogItem(
"1",
measurementID1+"+"+measurementID2+"+"+measurementID3+"+"+measurementID4,
measurementID1+"."+measurementID2+"."+measurementID3+"."+measurementID4,
"ping jsdelivr.com --infinite from Berlin",
)
assert.Equal(t, expectedHistory, string(b))
Expand Down

0 comments on commit a5ad37b

Please sign in to comment.