@@ -22,7 +22,7 @@ const (
2222func TestContractTestSkip (t * testing.T ) {
2323 ctx := context .Background ()
2424 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 ) {
2626 panic ("should not have got here!" )
2727 })
2828 }, "-AKO_CONTRACT_TEST" )
@@ -32,7 +32,7 @@ func TestContractTestClientSetFails(t *testing.T) {
3232 ctx := context .Background ()
3333 testWithEnv (func () {
3434 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 ) {})
3636 })
3737 },
3838 "AKO_CONTRACT_TEST=1" ,
@@ -43,12 +43,12 @@ func TestContractTestClientSetFails(t *testing.T) {
4343
4444func TestContractsWithResources (t * testing.T ) {
4545 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 ) {
4747 ch .AddResources (ctx , time .Minute , contract .DefaultAtlasProject ("contract-tests-list-projects" ))
4848 _ , _ , err := ch .AtlasClient ().ProjectsApi .ListProjects (ctx ).Execute ()
4949 assert .NoError (t , err )
5050 })
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 ) {
5252 ch .AddResources (ctx , time .Minute , contract .DefaultAtlasProject ("contract-tests-list-orgs" ))
5353 _ , _ , err := ch .AtlasClient ().OrganizationsApi .ListOrganizations (ctx ).Execute ()
5454 assert .NoError (t , err )
0 commit comments