@@ -22,7 +22,7 @@ const (
22
22
func TestContractTestSkip (t * testing.T ) {
23
23
ctx := context .Background ()
24
24
testWithEnv (func () {
25
- contract .RunGoContractTest (ctx , t , "Skip contract test" , func (_ contract.ContractHelper ) {
25
+ contract .RunGoContractTest (ctx , t , "Skip contract test" , func (t * testing. T , _ contract.ContractHelper ) {
26
26
panic ("should not have got here!" )
27
27
})
28
28
}, "-AKO_CONTRACT_TEST" )
@@ -32,7 +32,7 @@ func TestContractTestClientSetFails(t *testing.T) {
32
32
ctx := context .Background ()
33
33
testWithEnv (func () {
34
34
assert .Panics (t , func () {
35
- contract .RunGoContractTest (ctx , t , "bad client settings panics" , func (_ contract.ContractHelper ) {})
35
+ contract .RunGoContractTest (ctx , t , "bad client settings panics" , func (t * testing. T , _ contract.ContractHelper ) {})
36
36
})
37
37
},
38
38
"AKO_CONTRACT_TEST=1" ,
@@ -43,12 +43,12 @@ func TestContractTestClientSetFails(t *testing.T) {
43
43
44
44
func TestContractsWithResources (t * testing.T ) {
45
45
ctx := context .Background ()
46
- contract .RunGoContractTest (ctx , t , "run contract test list projects" , func (ch contract.ContractHelper ) {
46
+ contract .RunGoContractTest (ctx , t , "run contract test list projects" , func (t * testing. T , ch contract.ContractHelper ) {
47
47
ch .AddResources (ctx , time .Minute , contract .DefaultAtlasProject ("contract-tests-list-projects" ))
48
48
_ , _ , err := ch .AtlasClient ().ProjectsApi .ListProjects (ctx ).Execute ()
49
49
assert .NoError (t , err )
50
50
})
51
- contract .RunGoContractTest (ctx , t , "run contract test list orgs" , func (ch contract.ContractHelper ) {
51
+ contract .RunGoContractTest (ctx , t , "run contract test list orgs" , func (t * testing. T , ch contract.ContractHelper ) {
52
52
ch .AddResources (ctx , time .Minute , contract .DefaultAtlasProject ("contract-tests-list-orgs" ))
53
53
_ , _ , err := ch .AtlasClient ().OrganizationsApi .ListOrganizations (ctx ).Execute ()
54
54
assert .NoError (t , err )
0 commit comments