Skip to content

Commit 4479f75

Browse files
committed
adjust tests to account for changelog changes
1 parent 4d4de9b commit 4479f75

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/changelog/changelog_writer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ func TestWriteChange(t *testing.T) {
3232
})
3333
require.NoError(t, err)
3434
require.EqualValues(t, 1, len(mock.Lines))
35-
require.Equal(t, `{"seq":42,"family":"family1","table":"table1","key":[18014398509481984,"foo"]}`, mock.Lines[0])
35+
require.Equal(t, `{"seq":42,"ledgerSeq":0,"tx":false,"family":"family1","table":"table1","key":[18014398509481984,"foo"]}`, mock.Lines[0])
3636
}

pkg/event/changelog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func TestChangelog(t *testing.T) {
135135
numEvents: 10000,
136136
rotateAfterBytes: 1024 * 128,
137137
writeDelay: 100 * time.Microsecond,
138-
mustRotateN: 8,
138+
mustRotateN: 9,
139139
},
140140
} {
141141
t.Run(test.name, func(t *testing.T) {

pkg/reflector/reflector_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func TestReflector(t *testing.T) {
208208
clBytes, err := ioutil.ReadFile(changelogPath)
209209
require.NoError(t, err)
210210

211-
expectChangelog := "{\"seq\":1,\"family\":\"family1\",\"table\":\"table1234\",\"key\":[{\"name\":\"field1\",\"type\":\"INTEGER\",\"value\":1234}]}\n"
211+
expectChangelog := "{\"seq\":1,\"ledgerSeq\":2,\"tx\":false,\"family\":\"family1\",\"table\":\"table1234\",\"key\":[{\"name\":\"field1\",\"type\":\"INTEGER\",\"value\":1234}]}\n"
212212
if diff := cmp.Diff(expectChangelog, string(clBytes)); diff != "" {
213213
t.Errorf("Changelog contents differ\n%s", diff)
214214
}

0 commit comments

Comments
 (0)