Browse Source

Fix post tests

pull/10/head
Matt Baer 1 year ago
parent
commit
9b40a6fb2d
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      post_test.go

+ 4
- 8
post_test.go View File

@@ -24,10 +24,8 @@ func TestCreatePost(t *testing.T) {

// Update post
p, err = wac.UpdatePost(&PostParams{
OwnedPostParams: OwnedPostParams{
ID: p.ID,
Token: token,
},
ID: p.ID,
Token: token,
Content: "Now it's been updated!",
})
if err != nil {
@@ -38,10 +36,8 @@ func TestCreatePost(t *testing.T) {

// Delete post
err = wac.DeletePost(&PostParams{
OwnedPostParams: OwnedPostParams{
ID: p.ID,
Token: token,
},
ID: p.ID,
Token: token,
})
if err != nil {
t.Errorf("Post delete failed: %v", err)


Loading…
Cancel
Save