cleanup unnecessary use of floats

This commit is contained in:
Joel Wetzell
2026-03-02 12:34:06 -06:00
parent df14024012
commit 34af7d7aec
19 changed files with 86 additions and 86 deletions

View File

@@ -17,7 +17,7 @@ func TestTCPServerFromRegistry(t *testing.T) {
Id: "test",
Type: "net.tcp.server",
Params: map[string]any{
"port": 8000.0,
"port": 8000,
"framing": "LF",
},
})
@@ -59,14 +59,14 @@ func TestBadTCPServer(t *testing.T) {
{
name: "no framing param",
params: map[string]any{
"port": 8000.0,
"port": 8000,
},
errorString: "net.tcp.server framing error: not found",
},
{
name: "non-string framing param",
params: map[string]any{
"port": 8000.0,
"port": 8000,
"framing": 1,
},
errorString: "net.tcp.server framing error: not a string",
@@ -74,7 +74,7 @@ func TestBadTCPServer(t *testing.T) {
{
name: "unkown framing method",
params: map[string]any{
"port": 8000.0,
"port": 8000,
"framing": "asdfasdfasdfasdflkj",
},
errorString: "net.tcp.server unknown framing method: asdfasdfasdfasdflkj",
@@ -82,7 +82,7 @@ func TestBadTCPServer(t *testing.T) {
{
name: "non-string ip param",
params: map[string]any{
"port": 8000.0,
"port": 8000,
"framing": "LF",
"ip": 123,
},
@@ -92,7 +92,7 @@ func TestBadTCPServer(t *testing.T) {
name: "invalid addr",
params: map[string]any{
"ip": "127.0.0.",
"port": 8000.0,
"port": 8000,
"framing": "LF",
},
errorString: "lookup 127.0.0.: no such host",