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 TestUDPServerFromRegistry(t *testing.T) {
Id: "test",
Type: "net.udp.server",
Params: map[string]any{
"port": 8000.0,
"port": 8000,
},
})
@@ -55,7 +55,7 @@ func TestBadUDPServer(t *testing.T) {
{
name: "non-string ip param",
params: map[string]any{
"port": 8000.0,
"port": 8000,
"ip": 123,
},
errorString: "net.udp.server ip error: not a string",
@@ -63,7 +63,7 @@ func TestBadUDPServer(t *testing.T) {
{
name: "non-number bufferSize param",
params: map[string]any{
"port": 8000.0,
"port": 8000,
"bufferSize": "1024",
},
errorString: "net.udp.server bufferSize error: not a number",
@@ -72,7 +72,7 @@ func TestBadUDPServer(t *testing.T) {
name: "invalid addr",
params: map[string]any{
"ip": "127.0.0.",
"port": 8000.0,
"port": 8000,
},
errorString: "lookup 127.0.0.: no such host",
},