diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7ee2c2..caead36 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,8 +40,20 @@ jobs: - name: Run crash recovery origin-filter test run: go test -count=1 -v ./tests/integration -run 'TestTableDiffAgainstOriginWithUntil' - - name: Run crash recovery origin-filter test + - name: Run advanced repair plan tests run: go test -count=1 -v ./tests/integration -run 'TestAdvancedRepairPlan' - - name: Run connection pool cap test - run: go test -count=1 -v ./tests/integration -run 'TestRepsetDiff_MaxConnectionsCap' + - name: Run repset-diff tests + run: go test -count=1 -v ./tests/integration -run 'TestRepsetDiff_' + + - name: Run schema-diff tests + run: go test -count=1 -v ./tests/integration -run 'TestSchemaDiff_' + + - name: Run Merkle tree numeric scale invariance test + run: go test -count=1 -v ./tests/integration -run 'TestMerkleTreeNumericScaleInvariance' + + - name: Run catastrophic single-node failure recovery test + run: go test -count=1 -v ./tests/integration -run 'TestCatastrophicSingleNodeFailure' + + - name: Run timestamp comparison tests + run: go test -count=1 -v ./tests/integration -run 'TestCompareTimestampsExact|TestPostgreSQLMicrosecondPrecision|TestOldVsNewComparison' diff --git a/tests/integration/repset_diff_test.go b/tests/integration/repset_diff_test.go index 936d5cc..a26abdd 100644 --- a/tests/integration/repset_diff_test.go +++ b/tests/integration/repset_diff_test.go @@ -177,7 +177,7 @@ func TestRepsetDiff_DivergentTable(t *testing.T) { assert.Len(t, n1Rows, 1, "n1 should have 1 extra row") if len(n1Rows) > 0 { id, _ := n1Rows[0].Get("id") - assert.Equal(t, float64(99), id, "divergent row should be id=99") + assert.Equal(t, json.Number("99"), id, "divergent row should be id=99") val, _ := n1Rows[0].Get("val") assert.Equal(t, "only_on_n1", val) } @@ -298,6 +298,6 @@ func TestRepsetDiff_MultipleTables(t *testing.T) { n1Rows := pair.Rows[serviceN1] require.Len(t, n1Rows, 1) id, _ := n1Rows[0].Get("id") - assert.Equal(t, float64(99), id) + assert.Equal(t, json.Number("99"), id) } }