Skip to content

Commit

Permalink
remove env.AssertExpectations
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Jan 5, 2024
1 parent 145c738 commit 276c577
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 31 deletions.
18 changes: 0 additions & 18 deletions flow/e2e/bigquery/peer_flow_bq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Invalid_Connection_Config() {
// assert that error contains "invalid connection configs"
require.Contains(s.t, err.Error(), "invalid connection configs")

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Complete_Flow_No_Data() {
Expand Down Expand Up @@ -243,7 +242,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Complete_Flow_No_Data() {
// allow only continue as new error
require.Contains(s.t, err.Error(), "continue as new")

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Char_ColType_Error() {
Expand Down Expand Up @@ -287,7 +285,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Char_ColType_Error() {
// allow only continue as new error
require.Contains(s.t, err.Error(), "continue as new")

env.AssertExpectations(s.t)
}

// Test_Complete_Simple_Flow_BQ tests a complete flow with data in the source table.
Expand Down Expand Up @@ -357,7 +354,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Complete_Simple_Flow_BQ() {
// TODO: verify that the data is correctly synced to the destination table
// on the bigquery side

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Toast_BQ() {
Expand Down Expand Up @@ -425,7 +421,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Toast_BQ() {
require.Contains(s.t, err.Error(), "continue as new")

e2e.RequireEqualTables(s, dstTableName, "id,t1,t2,k")
env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Nochanges_BQ() {
Expand Down Expand Up @@ -488,7 +483,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Nochanges_BQ() {
require.Contains(s.t, err.Error(), "continue as new")

e2e.RequireEqualTables(s, dstTableName, "id,t1,t2,k")
env.AssertExpectations(s.t)
<-done
}

Expand Down Expand Up @@ -563,7 +557,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Advance_1_BQ() {
require.Contains(s.t, err.Error(), "continue as new")

e2e.RequireEqualTables(s, dstTableName, "id,t1,t2,k")
env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Advance_2_BQ() {
Expand Down Expand Up @@ -630,7 +623,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Advance_2_BQ() {
require.Contains(s.t, err.Error(), "continue as new")

e2e.RequireEqualTables(s, dstTableName, "id,t1,k")
env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Advance_3_BQ() {
Expand Down Expand Up @@ -697,7 +689,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Advance_3_BQ() {
require.Contains(s.t, err.Error(), "continue as new")

e2e.RequireEqualTables(s, dstTableName, "id,t1,t2,k")
env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Types_BQ() {
Expand Down Expand Up @@ -780,7 +771,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Types_BQ() {
err = s.checkJSONValue(dstTableName, "c17", "sai", "-8.021390374331551")
require.NoError(s.t, err)

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Invalid_Geo_BQ_Avro_CDC() {
Expand Down Expand Up @@ -864,7 +854,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Invalid_Geo_BQ_Avro_CDC() {
require.Equal(s.t, 6, lineCount)
require.Equal(s.t, 6, polyCount)

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Multi_Table_BQ() {
Expand Down Expand Up @@ -925,7 +914,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Multi_Table_BQ() {
require.Equal(s.t, 1, count1)
require.Equal(s.t, 1, count2)

env.AssertExpectations(s.t)
}

// TODO: not checking schema exactly, add later
Expand Down Expand Up @@ -1026,7 +1014,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Simple_Schema_Changes_BQ() {
// allow only continue as new error
require.Contains(s.t, err.Error(), "continue as new")

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Composite_PKey_BQ() {
Expand Down Expand Up @@ -1099,7 +1086,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Composite_PKey_BQ() {

e2e.RequireEqualTables(s, dstTableName, "id,c1,c2,t")

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Composite_PKey_Toast_1_BQ() {
Expand Down Expand Up @@ -1176,7 +1162,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Composite_PKey_Toast_1_BQ() {
// verify our updates and delete happened
e2e.RequireEqualTables(s, dstTableName, "id,c1,c2,t,t2")

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Composite_PKey_Toast_2_BQ() {
Expand Down Expand Up @@ -1249,7 +1234,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Composite_PKey_Toast_2_BQ() {
// verify our updates and delete happened
e2e.RequireEqualTables(s, dstTableName, "id,c1,c2,t,t2")

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Columns_BQ() {
Expand Down Expand Up @@ -1312,7 +1296,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Columns_BQ() {
err = s.checkPeerdbColumns(dstTableName, true)
require.NoError(s.t, err)

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Multi_Table_Multi_Dataset_BQ() {
Expand Down Expand Up @@ -1380,7 +1363,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Multi_Table_Multi_Dataset_BQ() {
err = s.bqHelper.DropDataset(secondDataset)
require.NoError(s.t, err)

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_Soft_Delete_Basic() {
Expand Down
2 changes: 0 additions & 2 deletions flow/e2e/bigquery/qrep_flow_bq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Complete_QRep_Flow_Avro() {

e2e.RequireEqualTables(s, tblName, "*")

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteBQ) Test_PeerDB_Columns_QRep_BQ() {
Expand Down Expand Up @@ -80,5 +79,4 @@ func (s PeerFlowE2ETestSuiteBQ) Test_PeerDB_Columns_QRep_BQ() {
err = s.checkPeerdbColumns(tblName, false)
require.NoError(s.t, err)

env.AssertExpectations(s.t)
}
2 changes: 0 additions & 2 deletions flow/e2e/postgres/qrep_flow_pg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ func (s PeerFlowE2ETestSuitePG) Test_Complete_QRep_Flow_Multi_Insert_PG() {
err = s.comparePGTables(srcSchemaQualified, dstSchemaQualified, "*")
require.NoError(s.t, err)

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuitePG) Test_Setup_Destination_And_PeerDB_Columns_QRep_PG() {
Expand Down Expand Up @@ -304,5 +303,4 @@ func (s PeerFlowE2ETestSuitePG) Test_Setup_Destination_And_PeerDB_Columns_QRep_P
err = s.checkSyncedAt(dstSchemaQualified)
require.NoError(s.t, err)

env.AssertExpectations(s.t)
}
1 change: 0 additions & 1 deletion flow/e2e/s3/cdc_s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,4 @@ func (s PeerFlowE2ETestSuiteS3) Test_Complete_Simple_Flow_S3() {

require.Equal(s.t, 4, len(files))

env.AssertExpectations(s.t)
}
2 changes: 0 additions & 2 deletions flow/e2e/s3/qrep_flow_s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ func (s PeerFlowE2ETestSuiteS3) Test_Complete_QRep_Flow_S3() {

require.Equal(s.t, 1, len(files))

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteS3) Test_Complete_QRep_Flow_S3_CTID() {
Expand Down Expand Up @@ -187,5 +186,4 @@ func (s PeerFlowE2ETestSuiteS3) Test_Complete_QRep_Flow_S3_CTID() {

require.Equal(s.t, 10, len(files))

env.AssertExpectations(s.t)
}
6 changes: 0 additions & 6 deletions flow/e2e/snowflake/qrep_flow_sf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func (s PeerFlowE2ETestSuiteSF) Test_Complete_QRep_Flow_Avro_SF() {
err = s.checkJSONValue(dstSchemaQualified, "f7", "key", "\"value\"")
require.NoError(s.t, err)

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteSF) Test_Complete_QRep_Flow_Avro_SF_Upsert_Simple() {
Expand Down Expand Up @@ -133,7 +132,6 @@ func (s PeerFlowE2ETestSuiteSF) Test_Complete_QRep_Flow_Avro_SF_Upsert_Simple()
sel := e2e.GetOwnersSelectorStringsSF()
s.compareTableContentsWithDiffSelectorsSF(tblName, sel[0], sel[1], false)

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteSF) Test_Complete_QRep_Flow_Avro_SF_S3() {
Expand Down Expand Up @@ -175,7 +173,6 @@ func (s PeerFlowE2ETestSuiteSF) Test_Complete_QRep_Flow_Avro_SF_S3() {
sel := e2e.GetOwnersSelectorStringsSF()
s.compareTableContentsWithDiffSelectorsSF(tblName, sel[0], sel[1], false)

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteSF) Test_Complete_QRep_Flow_Avro_SF_Upsert_XMIN() {
Expand Down Expand Up @@ -221,7 +218,6 @@ func (s PeerFlowE2ETestSuiteSF) Test_Complete_QRep_Flow_Avro_SF_Upsert_XMIN() {
sel := e2e.GetOwnersSelectorStringsSF()
s.compareTableContentsWithDiffSelectorsSF(tblName, sel[0], sel[1], false)

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteSF) Test_Complete_QRep_Flow_Avro_SF_S3_Integration() {
Expand Down Expand Up @@ -266,7 +262,6 @@ func (s PeerFlowE2ETestSuiteSF) Test_Complete_QRep_Flow_Avro_SF_S3_Integration()
sel := e2e.GetOwnersSelectorStringsSF()
s.compareTableContentsWithDiffSelectorsSF(tblName, sel[0], sel[1], false)

env.AssertExpectations(s.t)
}

func (s PeerFlowE2ETestSuiteSF) Test_PeerDB_Columns_QRep_SF() {
Expand Down Expand Up @@ -312,5 +307,4 @@ func (s PeerFlowE2ETestSuiteSF) Test_PeerDB_Columns_QRep_SF() {
s.sfHelper.testSchemaName, tblName))
require.NoError(s.t, err)

env.AssertExpectations(s.t)
}

0 comments on commit 276c577

Please sign in to comment.