@@ -142,8 +142,9 @@ func testCreatePauseStack(t *testing.T, c *pauseTestContext) {
142142
143143 cluster := readPauseClusterFromAtlas (t , c )
144144
145- assert .Equal (t , cluster .GetId (), clusterID )
146- assert .False (t , cluster .GetPaused ())
145+ a := assert .New (t )
146+ a .Equal (cluster .GetId (), clusterID )
147+ a .False (cluster .GetPaused ())
147148}
148149
149150func testUpdatePauseState (t * testing.T , c * pauseTestContext , pause bool ) {
@@ -164,14 +165,20 @@ func testUpdatePauseState(t *testing.T, c *pauseTestContext, pause bool) {
164165
165166 cluster := readPauseClusterFromAtlas (t , c )
166167
167- assert .Equal (t , pause , cluster .GetPaused ())
168+ a := assert .New (t )
169+ if pause {
170+ a .True (cluster .GetPaused ())
171+ } else {
172+ a .False (cluster .GetPaused ())
173+ }
168174}
169175
170176func testDeletePauseStack (t * testing.T , c * pauseTestContext ) {
171177 t .Helper ()
172178 utility .DeleteStack (t , c .cfnClient , pauseStackName )
179+ a := assert .New (t )
173180 _ , resp , _ := c .atlasClient20231115014 .ClustersApi .GetCluster (ctx .Background (), c .clusterTmplObj .ProjectID , c .clusterTmplObj .Name ).Execute ()
174- assert .Equal (t , 404 , resp .StatusCode )
181+ a .Equal (404 , resp .StatusCode )
175182}
176183
177184func cleanupPauseResources (t * testing.T , c * pauseTestContext ) {
0 commit comments