Skip to content

Commit

Permalink
minor fix in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-kripakov-m10 committed Jan 4, 2024
1 parent 2d3e3d9 commit 1b4ef3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dkron/server_lookup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ func (ta *testAddr) String() string {
func TestAddServer(t *testing.T) {
// arrange
lookup := NewServerLookup()
id1, addr1 := "svr-1", "127.0.0.1:8300"
id2, addr2 := "svr-2", "127.0.0.2:8300"
id1, addr1 := "server-1", "127.0.0.1:8300"
id2, addr2 := "server-2", "127.0.0.2:8300"
server1, server2 := buildServerParts(id1, addr1), buildServerParts(id2, addr2)

// act
Expand Down Expand Up @@ -56,8 +56,8 @@ func TestAddServer(t *testing.T) {
func TestRemoveServer(t *testing.T) {
// arrange
lookup := NewServerLookup()
id1, addr1 := "svr-1", "127.0.0.1:8300"
id2, addr2 := "svr-2", "127.0.0.2:8300"
id1, addr1 := "server-1", "127.0.0.1:8300"
id2, addr2 := "server-2", "127.0.0.2:8300"
server1, server2 := buildServerParts(id1, addr1), buildServerParts(id2, addr2)
lookup.AddServer(server1)
lookup.AddServer(server2)
Expand Down

0 comments on commit 1b4ef3f

Please sign in to comment.