Skip to content

Commit

Permalink
telemetry: remove obsolete test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kimtore committed Sep 12, 2024
1 parent 0687caf commit 93d9563
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/telemetry/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,6 @@ import (
)

func TestParsePipelineTelemetry(t *testing.T) {
t.Run("default case with four timings in correct order and quoted", func(t *testing.T) {
input := `"pipeline_start=1726050395,pipeline_end=1726050512,build_start=1726050400,attest_start=1726050492"`
expected := &telemetry.PipelineTimings{
Start: time.Date(2024, time.September, 11, 10, 26, 35, 0, time.UTC),
BuildStart: time.Date(2024, time.September, 11, 10, 26, 40, 0, time.UTC),
AttestStart: time.Date(2024, time.September, 11, 10, 28, 12, 0, time.UTC),
End: time.Date(2024, time.September, 11, 10, 28, 32, 0, time.UTC),
}
output, err := telemetry.ParsePipelineTelemetry(input)
assert.NoError(t, err)
assert.Equal(t, expected, output)
})

t.Run("default case with four timings in correct order without quoting", func(t *testing.T) {
input := "pipeline_start=1726050395,pipeline_end=1726050512,build_start=1726050400,attest_start=1726050492"
expected := &telemetry.PipelineTimings{
Expand Down

0 comments on commit 93d9563

Please sign in to comment.