Skip to content
This repository has been archived by the owner on Nov 12, 2020. It is now read-only.

Commit

Permalink
test: add good case to error cases
Browse files Browse the repository at this point in the history
This should not be an error.
  • Loading branch information
coderbyheart committed Apr 27, 2020
1 parent adc9fd1 commit f38f485
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var testCases [4][]byte = [4][]byte{
[]byte("{\"op\":\"242011\",\"ip\":[\"" + testIPv4 + "\",\"" + testIPv6 + "\"],\"cell_id\":21229824,\"ue_mode\":2,\"iccid\":\"8931089318104314834F\",\"interval\":" + strconv.Itoa(testInterval) + "}\n"),
}
var errorCases [][]byte = [][]byte{
[]byte("{\"op\":\"24201\",\"ip\":[\"" + testIPv4 + "\"],\"cell_id\":21229824,\"ue_mode\":2,\"iccid\":\"8931089318104314834F\",\"interval\":" + strconv.Itoa(testInterval) + "}"),
[]byte("{\"op\":,\"ip\":\"10.160.73.64\",\"cell_id\":21229824,\"ue_mode\":2,\"iccid\":\"8931089318104314834F\",\"interval\":10}"),
[]byte("{\"op\":\"24201\",\"ip\":,\"cell_id\":21229824,\"ue_mode\":2,\"iccid\":\"8931089318104314834F\",\"interval\":10}"),
[]byte("{\"op\":\"24201\",\"ip\":[\"10.160.73.64\"],\"cell_id\":,\"ue_mode\":2,\"iccid\":\"8931089318104314834F\",\"interval\":10}"),
Expand Down

0 comments on commit f38f485

Please sign in to comment.