Skip to content

test: add SourceController tests#3355

Merged
Ziinc merged 1 commit intoLogflare:mainfrom
laraujo7:la/source_controller-tests
Apr 10, 2026
Merged

test: add SourceController tests#3355
Ziinc merged 1 commit intoLogflare:mainfrom
laraujo7:la/source_controller-tests

Conversation

@laraujo7
Copy link
Copy Markdown
Contributor

@laraujo7 laraujo7 commented Apr 9, 2026

No description provided.

@laraujo7 laraujo7 force-pushed the la/source_controller-tests branch 2 times, most recently from b38e1cc to 752c5af Compare April 9, 2026 16:17

test "deletes source when events are older than 24h", %{conn: conn, source: source} do
Counters.create(source.token)
stub(SourceSupervisor, :delete_source, fn _ -> {:ok, source.token} end)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just add an expect instead of stubbing this one? 🙏

@laraujo7 laraujo7 force-pushed the la/source_controller-tests branch from 752c5af to f5384d2 Compare April 9, 2026 16:19
@laraujo7 laraujo7 force-pushed the la/source_controller-tests branch from f5384d2 to 884af99 Compare April 10, 2026 07:31
@Ziinc Ziinc merged commit 0131e23 into Logflare:main Apr 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants