github.com/turingchain2020/turingchain@v1.1.21/queue/client_test.go (about) 1 // Copyright Turing Corp. 2018 All Rights Reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package queue 6 7 import ( 8 "testing" 9 10 "github.com/stretchr/testify/assert" 11 ) 12 13 func TestSetTopic(t *testing.T) { 14 client := &client{} 15 hi := "hello" 16 client.setTopic(hi) 17 ret := client.getTopic() 18 assert.Equal(t, hi, ret) 19 }