diff --git a/test/test_IO.jl b/test/test_IO.jl
index be07ce2d8dde8964f168aa136fbc7654cf55d6de..f9ff59cde653c2a17481c628987e4f531c547b69 100644
--- a/test/test_IO.jl
+++ b/test/test_IO.jl
@@ -99,12 +99,12 @@
                     write_sequence(io, seq_orig, format=format)
                     seek(io, 0)
                     seq_json = read_sequence(io, format=format)
-                    @test variables.duration(seq_orig) == variables.duration(seq_json)
+                    @test variables.duration(seq_orig) ≈ variables.duration(seq_json)
                     @test length(seq_orig) == length(seq_json)
-                    @test all(variables.duration.(seq_orig) .== variables.duration.(seq_json))
+                    @test all(variables.duration.(seq_orig) .≈ variables.duration.(seq_json))
                     @test iszero(length(iter_instant_gradients(seq_json)))
                     @test iszero(length(iter_instant_pulses(seq_json)))
-                    @test all(variables.readout_times(seq_json) .== variables.readout_times(seq_orig))
+                    @test all(variables.readout_times(seq_json) .≈ variables.readout_times(seq_orig))
                 end
             end
         end
@@ -118,12 +118,12 @@
                 write_sequence(io, seq_orig; format=format)
                 seek(io, 0)
                 seq_json = read_sequence(io; format=format)
-                @test variables.duration(seq_orig) == variables.duration(seq_json)
+                @test variables.duration(seq_orig) ≈ variables.duration(seq_json)
                 @test length(seq_orig) == length(seq_json)
-                @test all(variables.duration.(seq_orig) .== variables.duration.(seq_json))
+                @test all(variables.duration.(seq_orig) .≈ variables.duration.(seq_json))
                 @test length(iter_instant_gradients(seq_json)) == length(iter_instant_gradients(seq_json))
                 @test length(iter_instant_pulses(seq_json)) == length(iter_instant_pulses(seq_json))
-                @test all(variables.readout_times(seq_json) .== variables.readout_times(seq_orig))
+                @test all(variables.readout_times(seq_json) .≈ variables.readout_times(seq_orig))
             end
         end
     end