github.com/872409/go-netease-im@v1.0.2-0.20201109080841-fdb3e13691c5/tests/history_test.go (about) 1 package tests 2 3 import ( 4 "strconv" 5 "testing" 6 "time" 7 ) 8 9 func TestQueryMessage(t *testing.T) { 10 res, err := client.QueryMessage("195371", "179495", "0", strconv.FormatInt(time.Now().UnixNano(), 10), 100, 0, "") 11 if err != nil { 12 t.Error(err) 13 } 14 // t.Log(res) 15 for _, val := range res { 16 t.Log(val) 17 } 18 }