From 42cd26972fef04a077bf276d13bfaad59ca4e4b5 Mon Sep 17 00:00:00 2001 From: DanB Date: Tue, 28 Apr 2015 17:16:31 +0200 Subject: [PATCH] Tutorial cost calculation fix --- general_tests/tutorial_fs_calls_test.go | 4 ++-- general_tests/tutorial_kam_calls_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/general_tests/tutorial_fs_calls_test.go b/general_tests/tutorial_fs_calls_test.go index 94ae03ba1..162b8cbcf 100644 --- a/general_tests/tutorial_fs_calls_test.go +++ b/general_tests/tutorial_fs_calls_test.go @@ -256,7 +256,7 @@ func TestTutFsCallsGetCosts(t *testing.T) { var cc engine.CallCost if err := tutFsCallsRpc.Call("Responder.GetCost", cd, &cc); err != nil { t.Error("Got error on Responder.GetCost: ", err.Error()) - } else if cc.Cost != 0.6 { + } else if cc.Cost != 0.01 { t.Errorf("Calling Responder.GetCost got callcost: %v", cc.Cost) } tStart, _ = utils.ParseDate("2014-08-04T13:00:00Z") @@ -274,7 +274,7 @@ func TestTutFsCallsGetCosts(t *testing.T) { } if err := tutFsCallsRpc.Call("Responder.GetCost", cd, &cc); err != nil { t.Error("Got error on Responder.GetCost: ", err.Error()) - } else if cc.Cost != 0.85 { + } else if cc.Cost != 0.05 { // 0.01 first minute, 0.04 25 seconds with RT_20CNT t.Errorf("Calling Responder.GetCost got callcost: %v", cc.Cost) } tStart, _ = utils.ParseDate("2014-08-04T13:00:00Z") diff --git a/general_tests/tutorial_kam_calls_test.go b/general_tests/tutorial_kam_calls_test.go index 04f9ba0a1..57b6c0264 100644 --- a/general_tests/tutorial_kam_calls_test.go +++ b/general_tests/tutorial_kam_calls_test.go @@ -254,7 +254,7 @@ func TestTutKamCallsGetCosts(t *testing.T) { var cc engine.CallCost if err := tutKamCallsRpc.Call("Responder.GetCost", cd, &cc); err != nil { t.Error("Got error on Responder.GetCost: ", err.Error()) - } else if cc.Cost != 0.6 { + } else if cc.Cost != 0.01 { t.Errorf("Calling Responder.GetCost got callcost: %v", cc.Cost) } tStart, _ = utils.ParseDate("2014-08-04T13:00:00Z") @@ -272,7 +272,7 @@ func TestTutKamCallsGetCosts(t *testing.T) { } if err := tutKamCallsRpc.Call("Responder.GetCost", cd, &cc); err != nil { t.Error("Got error on Responder.GetCost: ", err.Error()) - } else if cc.Cost != 0.6209 { + } else if cc.Cost != 0.05 { t.Errorf("Calling Responder.GetCost got callcost: %v", cc.Cost) } tStart, _ = utils.ParseDate("2014-08-04T13:00:00Z")