File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ func TestMain_Integration(t *testing.T) {
4444 // Prepare minimal metrics and sources YAML files
4545 metricsYaml := filepath .Join (tempDir , "metrics.yaml" )
4646 sourcesYaml := filepath .Join (tempDir , "sources.yaml" )
47- os .WriteFile (metricsYaml , []byte (`
47+ require . NoError ( t , os .WriteFile (metricsYaml , []byte (`
4848metrics:
4949 test_metric:
5050 sqls:
5151 11: select (extract(epoch from now()) * 1e9)::int8 as epoch_ns, 42 as test_metric
52- ` ), 0644 )
52+ ` ), 0644 ))
5353
5454 pg , err := initTestContainer ()
5555 require .NoError (t , err )
@@ -58,14 +58,14 @@ metrics:
5858 t .Log (connStr )
5959 require .NoError (t , err )
6060
61- os .WriteFile (sourcesYaml , []byte (`
61+ require . NoError ( t , os .WriteFile (sourcesYaml , []byte (`
6262- name: test1
6363 conn_str: ` + connStr + `
6464 kind: postgres
6565 is_enabled: true
6666 custom_metrics:
6767 test_metric: 60
68- ` ), 0644 )
68+ ` ), 0644 ))
6969
7070 // Mock Exit to capture exit code
7171 var gotExit int32
You can’t perform that action at this time.
0 commit comments