fix: add Process.sleep to async broadcast tests and update Renovate workflow for Forgejo

- Fix PacketConsumerTest timing issues by adding Process.sleep(50) after handle_events
  to wait for async broadcast tasks to complete before assertions
- Update Renovate workflow to use Docker container directly instead of GitHub Action
- Use full GitHub URL for checkout action to work with Forgejo Actions
This commit is contained in:
Graham McIntire 2026-03-03 10:41:50 -06:00
parent 6e6fa114e2
commit a74a571844
No known key found for this signature in database
2 changed files with 11 additions and 5 deletions

View file

@ -9,17 +9,19 @@ on:
jobs:
renovate:
runs-on: ubuntu-latest
container:
image: renovate/renovate:latest
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: https://github.com/actions/checkout@v4
- name: Run Renovate
uses: renovatebot/github-action@v42.0.4
with:
configurationFile: renovate.json
token: ${{ secrets.RENOVATE_TOKEN }}
env:
RENOVATE_PLATFORM: gitea
RENOVATE_ENDPOINT: ${{ secrets.FORGEJO_ENDPOINT }}
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
RENOVATE_GIT_AUTHOR: Renovate Bot <bot@renovateapp.com>
RENOVATE_AUTODISCOVER: false
LOG_LEVEL: info
run: |
renovate graham/aprs.me

View file

@ -225,6 +225,8 @@ defmodule Aprsme.PacketConsumerTest do
}
PacketConsumer.handle_events(events, nil, state)
# Wait for async broadcast task to complete
Process.sleep(50)
# Should receive the packet via PubSub
assert_receive {:streaming_packet, packet}, 1000
@ -353,6 +355,8 @@ defmodule Aprsme.PacketConsumerTest do
}
PacketConsumer.handle_events(events, nil, state)
# Wait for async broadcast task to complete
Process.sleep(50)
assert_receive {:streaming_packet, packet}, 1000
assert packet.sender == "FALLBACK1"