From: Jim Hahn Date: Fri, 10 Aug 2018 12:56:49 +0000 (-0400) Subject: get time from correct timer object X-Git-Tag: 1.3.0~35^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F60011%2F1;p=policy%2Fcommon.git get time from correct timer object Change-Id: Ie060e45d2cda368ffbb5908b41594d7795bae40b Issue-ID: POLICY-1045 Signed-off-by: Jim Hahn --- diff --git a/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeTest.java b/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeTest.java index c1e15b38..12086657 100644 --- a/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeTest.java +++ b/utils-test/src/test/java/org/onap/policy/common/utils/time/TestTimeTest.java @@ -37,7 +37,7 @@ public class TestTimeTest { assertEquals(tcur, tm.getDate().getTime()); long tsleep = 10000L; - long tcur2 = tcur; + long tcur2 = tm2.getMillis(); // sleep a bit and then check values tcur2 += tsleep;