diff --git a/node/src/command.rs b/node/src/command.rs
index 4b369ab52bdc3298797335231be8ebab4dcea1aa..f2f2f23a51a449abfd90d1b8f1759c86229ad6e2 100644
--- a/node/src/command.rs
+++ b/node/src/command.rs
@@ -124,7 +124,7 @@ impl SubstrateCli for Cli {
             )?),
             // hardcoded previously generated raw chainspecs
             // yields a pointlessly heavy binary because of hexadecimal-text-encoded values
-            #[cfg(all(feature = "gtest", feature = "embed"))]
+            #[cfg(all(feature = "gdev", feature = "embed"))]
             "gdev" => Box::new(chain_spec::gdev::ChainSpec::from_json_bytes(
                 &include_bytes!("../specs/gdev-raw.json")[..],
             )?),