mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-24 07:16:42 +00:00
Fix multicast tests for SQLite.
This commit is contained in:
parent
d3692144fa
commit
30b1e0301a
@ -1204,6 +1204,9 @@ pub mod test {
|
|||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
// The below features are (currently) for PostgreSQL only.
|
||||||
|
#[cfg(feature = "postgres")]
|
||||||
|
{
|
||||||
// Set gateway last_seen_at in the past.
|
// Set gateway last_seen_at in the past.
|
||||||
gateway::partial_update(
|
gateway::partial_update(
|
||||||
gw.gateway_id,
|
gw.gateway_id,
|
||||||
@ -1220,7 +1223,9 @@ pub mod test {
|
|||||||
assert_eq!(0, out.len());
|
assert_eq!(0, out.len());
|
||||||
|
|
||||||
// Set the expires_at of the queue item to now.
|
// Set the expires_at of the queue item to now.
|
||||||
diesel::update(multicast_group_queue_item::dsl::multicast_group_queue_item.find(&qi.id))
|
diesel::update(
|
||||||
|
multicast_group_queue_item::dsl::multicast_group_queue_item.find(&qi.id),
|
||||||
|
)
|
||||||
.set(multicast_group_queue_item::expires_at.eq(Some(Utc::now())))
|
.set(multicast_group_queue_item::expires_at.eq(Some(Utc::now())))
|
||||||
.execute(&mut get_async_db_conn().await.unwrap())
|
.execute(&mut get_async_db_conn().await.unwrap())
|
||||||
.await
|
.await
|
||||||
@ -1230,4 +1235,5 @@ pub mod test {
|
|||||||
let out = get_schedulable_queue_items(100).await.unwrap();
|
let out = get_schedulable_queue_items(100).await.unwrap();
|
||||||
assert_eq!(1, out.len());
|
assert_eq!(1, out.len());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user