From 82566d17d39b0292046a0e7897c90f95175a037a Mon Sep 17 00:00:00 2001 From: Brandon Kite Date: Tue, 7 Dec 2021 13:58:56 -0800 Subject: [PATCH] get tests working when using 'cargo test' (#50) --- fuel-tx/Cargo.toml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fuel-tx/Cargo.toml b/fuel-tx/Cargo.toml index 049b747ca1..8e4f80e494 100644 --- a/fuel-tx/Cargo.toml +++ b/fuel-tx/Cargo.toml @@ -16,6 +16,9 @@ rand = { version = "0.8", optional = true } serde = { version = "1.0", default-features = false, features = ["derive"], optional = true } sha2 = { version = "0.9", optional = true } +[dev-dependencies] +fuel-types = { git = "ssh://git@github.com/FuelLabs/fuel-types.git", default-features = false, features = ["random"] } + [features] default = ["fuel-asm/default", "fuel-types/default", "std"] random = ["fuel-types/random"] @@ -26,14 +29,14 @@ serde-types-minimal = ["fuel-asm/serde-types-minimal", "fuel-types/serde-types-m [[test]] name = "test-bytes" path = "tests/bytes.rs" -required-features = ["random", "std"] +required-features = ["std"] [[test]] name = "test-offsets" path = "tests/offset.rs" -required-features = ["random", "std"] +required-features = ["std"] [[test]] name = "test-valid" path = "tests/valid.rs" -required-features = ["random", "std"] +required-features = ["std"]