@@ -9,19 +9,6 @@ import (
9
9
)
10
10
11
11
func TestParsePipelineTelemetry (t * testing.T ) {
12
- t .Run ("default case with four timings in correct order and quoted" , func (t * testing.T ) {
13
- input := `"pipeline_start=1726050395,pipeline_end=1726050512,build_start=1726050400,attest_start=1726050492"`
14
- expected := & telemetry.PipelineTimings {
15
- Start : time .Date (2024 , time .September , 11 , 10 , 26 , 35 , 0 , time .UTC ),
16
- BuildStart : time .Date (2024 , time .September , 11 , 10 , 26 , 40 , 0 , time .UTC ),
17
- AttestStart : time .Date (2024 , time .September , 11 , 10 , 28 , 12 , 0 , time .UTC ),
18
- End : time .Date (2024 , time .September , 11 , 10 , 28 , 32 , 0 , time .UTC ),
19
- }
20
- output , err := telemetry .ParsePipelineTelemetry (input )
21
- assert .NoError (t , err )
22
- assert .Equal (t , expected , output )
23
- })
24
-
25
12
t .Run ("default case with four timings in correct order without quoting" , func (t * testing.T ) {
26
13
input := "pipeline_start=1726050395,pipeline_end=1726050512,build_start=1726050400,attest_start=1726050492"
27
14
expected := & telemetry.PipelineTimings {
0 commit comments