Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
diPhantxm committed Sep 14, 2024
1 parent 00a5627 commit 0908ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/frontend/frontend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func TestFrontendSimpleCopyIn(t *testing.T) {

srv.EXPECT().Send(query).Times(1).Return(nil)

sh1.EXPECT().Send(&pgproto3.CopyData{Data: []byte("1\n1\n1\n1\n")}).Times(1).Return(nil)
sh1.EXPECT().Send(&pgproto3.CopyData{Data: []byte("1\n")}).Times(4).Return(nil)
srv.EXPECT().Send(&pgproto3.CopyDone{}).Times(1).Return(nil)

srv.EXPECT().Receive().Times(1).Return(&pgproto3.CopyInResponse{}, nil)
Expand Down

0 comments on commit 0908ff5

Please sign in to comment.