fix overflows int

This commit is contained in:
LianBo
2023-01-30 12:29:23 +08:00
parent 0500e4b57b
commit dfa375c97e
3 changed files with 34 additions and 34 deletions

View File

@@ -156,8 +156,8 @@ func TestSetMachineID(t *testing.T) {
defer func() {
if err := recover(); err == nil {
tt.Error("Should throw a error")
} else if err.(string) != "The machineid cannot be greater than 1023" {
tt.Error("The error message should be eq 「The machineid cannot be greater than 1023」")
} else if err.(string) != "The machineID cannot be greater than 1023" {
tt.Error("The error message should be eq 「The machineID cannot be greater than 1023」")
}
}()