From 6d82751ed32dd0eda06b93ba527950d3537f7930 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 7 Oct 2020 19:37:41 -0600 Subject: [PATCH] notes --- src/entity/gateway/postgres/postgres.rs | 1 - tests/test_shops.rs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/gateway/postgres/postgres.rs b/src/entity/gateway/postgres/postgres.rs index 602c0c3..2e03a5a 100644 --- a/src/entity/gateway/postgres/postgres.rs +++ b/src/entity/gateway/postgres/postgres.rs @@ -355,7 +355,6 @@ impl EntityGateway for PostgresGateway { } async fn use_mag_cell(&mut self, mag_item_id: &ItemEntityId, mag_cell_id: &ItemEntityId) { - // consume cell? sqlx::query("insert into mag_modifier (mag, modifier) values ($1, $2);") .bind(mag_item_id.0) .bind(sqlx::types::Json(PgMagModifierDetail::from(mag::MagModifier::MagCell(*mag_cell_id)))) diff --git a/tests/test_shops.rs b/tests/test_shops.rs index f1c292c..d254b58 100644 --- a/tests/test_shops.rs +++ b/tests/test_shops.rs @@ -506,6 +506,7 @@ async fn test_techs_disappear_from_shop_when_bought() { assert!(p1_items[0].item != p1_items[1].item); } +// TOOD: this is not deterministic and can randomly fail #[async_std::test] async fn test_units_disappear_from_shop_when_bought() { let mut entity_gateway = InMemoryGateway::new();