Browse Source

Fix post tests

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) {
24 24
 
25 25
 	// Update post
26 26
 	p, err = wac.UpdatePost(&PostParams{
27
-		OwnedPostParams: OwnedPostParams{
28
-			ID:    p.ID,
29
-			Token: token,
30
-		},
27
+		ID:      p.ID,
28
+		Token:   token,
31 29
 		Content: "Now it's been updated!",
32 30
 	})
33 31
 	if err != nil {
@@ -38,10 +36,8 @@ func TestCreatePost(t *testing.T) {
38 36
 
39 37
 	// Delete post
40 38
 	err = wac.DeletePost(&PostParams{
41
-		OwnedPostParams: OwnedPostParams{
42
-			ID:    p.ID,
43
-			Token: token,
44
-		},
39
+		ID:    p.ID,
40
+		Token: token,
45 41
 	})
46 42
 	if err != nil {
47 43
 		t.Errorf("Post delete failed: %v", err)