Skip to content

Commit bcf9ff6

Browse files
committed
add logs to timing test
1 parent 08078c6 commit bcf9ff6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

provisioner/terraform/timings_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ package terraform_test
44

55
import (
66
"context"
7+
"encoding/json"
8+
"fmt"
79
"os"
810
"path/filepath"
911
"strings"
@@ -122,11 +124,12 @@ func TestTimingsFromProvision(t *testing.T) {
122124
totals := make(map[string]int)
123125
for _, ti := range timings {
124126
totals[ti.Stage]++
127+
data, _ := json.Marshal(ti) // for debugging
128+
t.Log(fmt.Sprintf("Timings log :: %s", string(data)))
125129
}
126130
require.Equal(t, len(initTimings), totals["init"], "init")
127131
require.Equal(t, len(planTimings), totals["plan"], "plan")
128132
require.Equal(t, len(applyTimings), totals["apply"], "apply")
129-
130133
// Lastly total
131134
require.Len(t, timings, len(initTimings)+len(planTimings)+len(applyTimings))
132135

0 commit comments

Comments
 (0)