diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-27 20:18:50 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-28 01:00:09 -0400 |
| commit | 1458ff7be5d883444943090cb636e9343487d03e (patch) | |
| tree | adb410ce9245dc2a1562fc370f2398cab35e7507 /src/test/fixtures/channel.rs | |
| parent | eff129bc1f29bcb1b2b9d10c6b49ab886edc83d6 (diff) | |
Send created events when channels are added.
Diffstat (limited to 'src/test/fixtures/channel.rs')
| -rw-r--r-- | src/test/fixtures/channel.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/fixtures/channel.rs b/src/test/fixtures/channel.rs index 0558395..8744470 100644 --- a/src/test/fixtures/channel.rs +++ b/src/test/fixtures/channel.rs @@ -4,12 +4,12 @@ use faker_rand::{ }; use rand; -use crate::{app::App, repo::channel::Channel}; +use crate::{app::App, clock::RequestedAt, repo::channel::Channel}; -pub async fn create(app: &App) -> Channel { +pub async fn create(app: &App, created_at: &RequestedAt) -> Channel { let name = propose(); app.channels() - .create(&name) + .create(&name, created_at) .await .expect("should always succeed if the channel is actually new") } |
