Skip to content

Commit 780c5f8

Browse files
committed
Syncing does not match ResultAggregator errors
1 parent 886434b commit 780c5f8

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
@@ -116,6 +116,12 @@ defmodule CodeCorps.GitHub.SyncTest do
116116
assert Repo.aggregate(Task, :count, :id) == 8
117117
assert Repo.aggregate(User, :count, :id) == 13
118118

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

121127
Sync.sync_project_github_repo(project_github_repo)

0 commit comments

Comments
 (0)