alias대신 nonce를 받는 peer handler

This commit is contained in:
2023-12-19 15:53:04 +09:00
parent 43d3e8cbff
commit 17593f74c6
2 changed files with 35 additions and 18 deletions

View File

@ -6,6 +6,7 @@ import (
"encoding/json"
"errors"
"fmt"
"math"
"reflect"
"testing"
@ -105,3 +106,13 @@ func TestPeerApiBroker(t *testing.T) {
func1args, _ = json.Marshal([]any{float64(111.1), []int{99, 98}})
ws.Call(peer, "test.ApiFunc3", bytes.NewBuffer(func1args))
}
func TestOverflow(t *testing.T) {
var x uint32
x = math.MaxUint32
var y uint32
y = x + 1
fmt.Printf("%x, %x", x, y)
}