Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions go/cmd/dolt/commands/diff_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,7 @@ func TestLazyRowWriter_NoRowsWritten(t *testing.T) {
mockDW := &mockDiffWriter{}
realWriter := &mockRowWriter{}

beginTableCalled := false
onFirstWrite := func() error {
beginTableCalled = true
return mockDW.BeginTable("fromTable", "toTable", false, false)
}

Expand All @@ -417,7 +415,7 @@ func TestLazyRowWriter_NoRowsWritten(t *testing.T) {
}

// BeginTable should NEVER have been called
if beginTableCalled {
if mockDW.beginTableCalled {
t.Error("BeginTable() was called even though no rows were written - should have been lazy!")
}
}
Expand Down
Loading