@@ -111,8 +111,8 @@ func TestClient_StreamCreate(t *testing.T) {
111111 address := string (* addressResponse )
112112 got , err := d .StreamCreate ("test" + fmt .Sprintf ("%d" , time .Now ().Unix ()), "/home/niko/Downloads/IMG_20171012_205120.jpg" , 14.37 , StreamCreateOptions {
113113 ClaimCreateOptions : ClaimCreateOptions {
114- Title : "This is a Test Title" + fmt .Sprintf ("%d" , time .Now ().Unix ()),
115- Description : "My Special Description" ,
114+ Title : util . PtrToString ( "This is a Test Title" + fmt .Sprintf ("%d" , time .Now ().Unix () )),
115+ Description : util . PtrToString ( "My Special Description" ) ,
116116 Tags : []string {"nsfw" , "test" },
117117 Languages : []string {"en-US" , "fr-CH" },
118118 Locations : []Location {{
@@ -142,7 +142,7 @@ func TestClient_StreamCreate(t *testing.T) {
142142 Preview : nil ,
143143 AllowDuplicateName : nil ,
144144 ChannelName : nil ,
145- ChannelID : util .PtrToString ("253ca42da47ad8a430e18d52860cb499c50eff25 " ),
145+ ChannelID : util .PtrToString ("dd0b559b4f17a7af984f173efb5438534eb6ab27 " ),
146146 ChannelAccountID : nil ,
147147 })
148148 if err != nil {
@@ -156,8 +156,8 @@ func TestClient_ChannelCreate(t *testing.T) {
156156 d := NewClient ("" )
157157 got , err := d .ChannelCreate ("@Test" + fmt .Sprintf ("%d" , time .Now ().Unix ()), 13.37 , ChannelCreateOptions {
158158 ClaimCreateOptions : ClaimCreateOptions {
159- Title : "Mess with the channels" ,
160- Description : "And you'll get what you deserve" ,
159+ Title : util . PtrToString ( "Mess with the channels" ) ,
160+ Description : util . PtrToString ( "And you'll get what you deserve" ) ,
161161 Tags : []string {"we" , "got" , "tags" },
162162 Languages : []string {"en-US" },
163163 Locations : []Location {{
@@ -186,8 +186,8 @@ func TestClient_ChannelUpdate(t *testing.T) {
186186 ClearTags : util .PtrToBool (true ),
187187 ChannelCreateOptions : ChannelCreateOptions {
188188 ClaimCreateOptions : ClaimCreateOptions {
189- Title : "Mess with the channels" ,
190- Description : "And you'll get what you deserve" ,
189+ Title : util . PtrToString ( "Mess with the channels" ) ,
190+ Description : util . PtrToString ( "And you'll get what you deserve" ) ,
191191 Tags : []string {"we" , "got" , "more" , "tags" },
192192 Languages : []string {"en-US" },
193193 Locations : []Location {{
@@ -213,8 +213,8 @@ func TestClient_ChannelAbandon(t *testing.T) {
213213 channelName := "@TestToDelete" + fmt .Sprintf ("%d" , time .Now ().Unix ())
214214 channelResponse , err := d .ChannelCreate (channelName , 13.37 , ChannelCreateOptions {
215215 ClaimCreateOptions : ClaimCreateOptions {
216- Title : "Mess with the channels" ,
217- Description : "And you'll get what you deserve" ,
216+ Title : util . PtrToString ( "Mess with the channels" ) ,
217+ Description : util . PtrToString ( "And you'll get what you deserve" ) ,
218218 Tags : []string {"we" , "got" , "tags" },
219219 Languages : []string {"en-US" },
220220 Locations : []Location {{
0 commit comments