Skip to content

Commit 41a6ca5

Browse files
committed
Syncing does not match ResultAggregator errors
1 parent f82f9cd commit 41a6ca5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/lib/code_corps/github/sync/sync_test.exs

+6
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ defmodule CodeCorps.GitHub.SyncTest do
120120
assert Repo.aggregate(Task, :count, :id) == 8
121121
assert Repo.aggregate(User, :count, :id) == 13
122122

123+
# Simulate disconnecting the repo and updating a task locally
124+
125+
[task | _] = Repo.all(Task, limit: 1)
126+
changeset = Task.update_changeset(task, %{title: "New title", updated_from: "codecorps"})
127+
Repo.update!(changeset)
128+
123129
# Sync a second time – should run without trouble
124130

125131
Sync.sync_repo(github_repo)

0 commit comments

Comments
 (0)