Kaynağa Gözat

Fix high temp basal unit test

Sam King 6 ay önce
ebeveyn
işleme
68a8074760

+ 3 - 3
TrioTests/OpenAPSSwiftTests/DetermineBasalEarlyExitTests.swift

@@ -203,9 +203,9 @@ import Testing
             currentTime: currentTime
             currentTime: currentTime
         )
         )
 
 
-        #expect(result?.rate == 0)
-        #expect(result?.duration == 0)
-        #expect(result?.reason.contains("Canceling high temp basal") == true)
+        #expect(result?.rate == profile.currentBasal)
+        #expect(result?.duration == 30)
+        #expect(result?.reason.contains("Replacing high temp basal") == true)
     }
     }
 
 
     // Test 3 from JS
     // Test 3 from JS