@@ -10,7 +10,7 @@ func TestConstructor(t *testing.T) {
1010 if tpl .GetCode () != 423 {
1111 t .Error ("TestConstructor: Expected response code not matching." )
1212 }
13- if strings .Compare (tpl .GetDescription (), "Empty API response" ) != 0 {
13+ if strings .Compare (tpl .GetDescription (), "Empty API response. Probably unreachable API end point " ) != 0 {
1414 t .Error ("TestConstructor: Expected response description not matching." )
1515 }
1616}
@@ -20,7 +20,7 @@ func TestGetHash(t *testing.T) {
2020 if v , ok := h ["CODE" ]; ! ok || strings .Compare (v .(string ), "423" ) != 0 {
2121 t .Error ("TestGetHash: Expected response code not matching." )
2222 }
23- if v , ok := h ["DESCRIPTION" ]; ! ok || strings .Compare (v .(string ), "Empty API response" ) != 0 {
23+ if v , ok := h ["DESCRIPTION" ]; ! ok || strings .Compare (v .(string ), "Empty API response. Probably unreachable API end point " ) != 0 {
2424 t .Error ("TestGetHash: Expected response description not matching." )
2525 }
2626}
@@ -33,7 +33,7 @@ func TestGetQueuetime1(t *testing.T) {
3333}
3434
3535func TestGetQueuetime2 (t * testing.T ) {
36- tpl := NewResponseTemplate ("[RESPONSE]\r \n code=423\r \n description=Empty API response\r \n queuetime=0\r \n EOF\r \n " )
36+ tpl := NewResponseTemplate ("[RESPONSE]\r \n code=423\r \n description=Empty API response. Probably unreachable API end point \r \n queuetime=0\r \n EOF\r \n " )
3737 if tpl .GetQueuetime () != 0 {
3838 t .Error ("TestGetQueuetime2: Expected queuetime not matching" )
3939 }
@@ -47,7 +47,7 @@ func TestGetRuntime1(t *testing.T) {
4747}
4848
4949func TestGetRuntime2 (t * testing.T ) {
50- tpl := NewResponseTemplate ("[RESPONSE]\r \n code=423\r \n description=Empty API response\r \n runtime=0.12\r \n EOF\r \n " )
50+ tpl := NewResponseTemplate ("[RESPONSE]\r \n code=423\r \n description=Empty API response. Probably unreachable API end point \r \n runtime=0.12\r \n EOF\r \n " )
5151 if tpl .GetRuntime () != 0.12 {
5252 t .Error ("TestGetRuntime2: Expected runtime not matching" )
5353 }
@@ -61,7 +61,7 @@ func TestIsPending1(t *testing.T) {
6161}
6262
6363func TestIsPending2 (t * testing.T ) {
64- tpl := NewResponseTemplate ("[RESPONSE]\r \n code=423\r \n description=Empty API response\r \n pending=1\r \n EOF\r \n " )
64+ tpl := NewResponseTemplate ("[RESPONSE]\r \n code=423\r \n description=Empty API response. Probably unreachable API end point \r \n pending=1\r \n EOF\r \n " )
6565 if ! tpl .IsPending () {
6666 t .Error ("TestIsPending2: Expected pending value not matching" )
6767 }
0 commit comments