Skip to content

Commit

Permalink
removed ctrl.Finish because does not required in updated framework
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekj720 committed Mar 6, 2024
1 parent 4cba7bd commit cb64a85
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions common/domain/replication_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ func TestReplicationQueueImpl_Publish(t *testing.T) {
} else {
assert.NoError(t, err)
}
ctrl.Finish()
})
}
}
Expand Down Expand Up @@ -117,7 +116,6 @@ func TestReplicationQueueImpl_PublishToDLQ(t *testing.T) {
} else {
assert.NoError(t, err)
}
ctrl.Finish()
})
}
}
Expand Down Expand Up @@ -164,7 +162,6 @@ func TestGetReplicationMessages(t *testing.T) {
} else {
assert.NoError(t, err)
}
ctrl.Finish()
})
}
}
Expand Down Expand Up @@ -210,7 +207,6 @@ func TestUpdateAckLevel(t *testing.T) {
} else {
assert.NoError(t, err)
}
ctrl.Finish()
})
}
}
Expand Down Expand Up @@ -252,7 +248,6 @@ func TestReplicationQueueImpl_GetAckLevels(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, tt.want, got)
}
ctrl.Finish()
})
}
}
Expand All @@ -265,7 +260,6 @@ func mockEncodeReplicationTask(sourceTaskID int64) ([]byte, error) {
}

func TestGetMessagesFromDLQ(t *testing.T) {

tests := []struct {
name string
firstID int64
Expand Down Expand Up @@ -318,7 +312,6 @@ func TestGetMessagesFromDLQ(t *testing.T) {
assert.Len(t, replicationTasks, 1, "Expected one replication task to be returned")
assert.Equal(t, []byte("nextToken"), token, "Expected token to match 'nextToken'")
}
ctrl.Finish()
})
}
}

0 comments on commit cb64a85

Please sign in to comment.