Skip to content

Commit

Permalink
bugfix fix ut bug of msg, it will cause ci failed (#176)
Browse files Browse the repository at this point in the history
fix ut bug of msg.
  • Loading branch information
106umao authored Aug 5, 2022
1 parent 7ffc657 commit 6445fef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go 1.16
require (
dubbo.apache.org/dubbo-go/v3 v3.0.2-0.20220508105316-b27ec53b7bab
github.com/BurntSushi/toml v1.1.0 // indirect
github.com/agiledragon/gomonkey v2.0.2+incompatible
github.com/apache/dubbo-getty v1.4.8
github.com/dubbogo/gost v1.12.5
github.com/natefinch/lumberjack v2.0.0+incompatible
Expand Down
2 changes: 1 addition & 1 deletion pkg/protocol/message/other_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

func TestNewMessageFuture(t *testing.T) {
rpcMessage := RpcMessage{ID: 0}
assert.Equal(t, 0, NewMessageFuture(rpcMessage).ID)
assert.Equal(t, int32(0), NewMessageFuture(rpcMessage).ID)
}

func TestHeartBeatMessage_ToString(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/protocol/message/request_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestGlobalLockQueryRequest_GetTypeCode(t *testing.T) {
}

func TestGlobalReportRequest_GetTypeCode(t *testing.T) {
assert.Equal(t, MessageType_GlobalReport, GlobalReportRequest{}.GetTypeCode())
assert.Equal(t, MessageType_GlobalStatus, GlobalReportRequest{}.GetTypeCode())
}

func TestUndoLogDeleteRequest_GetTypeCode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/protocol/message/response_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestRegisterTMResponse_GetTypeCode(t *testing.T) {
}

func TestGlobalReportResponse_GetTypeCode(t *testing.T) {
assert.Equal(t, MessageType_GlobalReportResult, GlobalReportResponse{}.GetTypeCode())
assert.Equal(t, MessageType_GlobalStatusResult, GlobalReportResponse{}.GetTypeCode())
}

func TestGlobalLockQueryResponse_GetTypeCode(t *testing.T) {
Expand Down

0 comments on commit 6445fef

Please sign in to comment.