diff --git a/test/gtest_imu.cpp b/test/gtest_imu.cpp
index b4ae8d28602fd6e035491cc6789c69aa04b2293b..4dccf7990fddede69f4fd339c748657296326621 100644
--- a/test/gtest_imu.cpp
+++ b/test/gtest_imu.cpp
@@ -1549,7 +1549,8 @@ TEST_F(Process_Factor_Imu, bootstrap)
     problem->print(4, 0, 1, 0);
 
     // Vector6d data(0,0,9.806, 0,0,0); // gravity on Z
-    Vector6d data(0.0, 9.806, 0.0,  0.0, 0.0, 0.0); // gravity on Y
+    // Vector6d data(0.0, 9.806, 0.0,  0.0, 0.0, 0.0); // gravity on Y
+    Vector6d data{ 0.0, 9.806, 0.0,  0.0, 0.0, 0.0 } ; // gravity on Y
 
     capture_imu = std::make_shared<CaptureImu>(0.0, sensor_imu, data, Matrix6d::Identity());