(t *testing.T)
| 72 | } |
| 73 | |
| 74 | func deleteSubscription(t *testing.T) { |
| 75 | // delete subscription |
| 76 | _, err := client.Activity.DeleteRepositorySubscription(t.Context(), owner, repo) |
| 77 | if err != nil { |
| 78 | t.Fatalf("Activity.DeleteRepositorySubscription returned error: %v", err) |
| 79 | } |
| 80 | |
| 81 | // check again and verify not watching |
| 82 | sub, _, err := client.Activity.GetRepositorySubscription(t.Context(), owner, repo) |
| 83 | if err != nil { |
| 84 | t.Fatalf("Activity.GetRepositorySubscription returned error: %v", err) |
| 85 | } |
| 86 | if sub != nil { |
| 87 | t.Fatalf("Still watching %v/%v after deleting subscription.", owner, repo) |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | func createSubscription(t *testing.T) { |
| 92 | // watch the target repository |
no test coverage detected
searching dependent graphs…