~thrrgilag/woodstock

woodstock/stream_marker_test.go -rw-r--r-- 397 bytes
62b10b5cMorgan McMillian Update for new project location and module name 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package woodstock

import (
	"testing"
	"time"
)

func TestSetMarker(t *testing.T) {
	config, err := GetConfig()
	if err != nil {
		t.Error(err)
	}
	marker := `[{"id":"106930","name":"channel:1001"}]`
	client := NewClient(config.ClientID, "")
	client.SetAccessToken(config.AccessToken)
	res, err := client.SetMarker(marker)
	if err != nil {
		t.Error(err)
	}
	t.Log(res.Meta)
	time.Sleep(Delay)
}