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

@@ -18,7 +18,7 @@ func TestUDPMulticastFromRegistry(t *testing.T) {
Type: "net.udp.multicast",
Params: map[string]any{
"ip": "236.10.10.10",
"port": 56565.0,
"port": 56565,
},
})
@@ -59,7 +59,7 @@ func TestBadUDPMulticast(t *testing.T) {
{
name: "no ip param",
params: map[string]any{
"port": 8000.0,
"port": 8000,
},
errorString: "net.udp.multicast ip error: not found",
},
@@ -67,7 +67,7 @@ func TestBadUDPMulticast(t *testing.T) {
name: "non-string ip param",
params: map[string]any{
"ip": 123,
"port": 8000.0,
"port": 8000,
},
errorString: "net.udp.multicast ip error: not a string",
},
@@ -75,7 +75,7 @@ func TestBadUDPMulticast(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",
},