Skip to content

Commit

Permalink
CNS-337: [review] fix default plan to include LAV1
Browse files Browse the repository at this point in the history
  • Loading branch information
orenl-lava committed May 1, 2023
1 parent 983d23e commit b8f5076
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion cookbook/plans/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
"overuse_rate": "0",
"plan_policy": {
"chain_policies": [
{
"chain_id": "LAV1",
"apis": [
]
},
{
"chain_id": "ETH1",
"apis": [
Expand All @@ -33,7 +38,7 @@
],
"geolocation_profile": "1",
"total_cu_limit": "1000000",
"epoch_cu_limit": "10000",
"epoch_cu_limit": "20000",
"max_providers_to_pair": "3"
}
}
Expand Down
4 changes: 2 additions & 2 deletions protocol/chainlib/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package chainlib

import (
"encoding/json"
"io/ioutil"
"io"
"net/http/httptest"
"testing"
"time"
Expand Down Expand Up @@ -307,7 +307,7 @@ func TestExtractDappIDFromFiberContext(t *testing.T) {
req := httptest.NewRequest("GET", testCase.route, nil)

resp, _ := app.Test(req, 1)
body, _ := ioutil.ReadAll(resp.Body)
body, _ := io.ReadAll(resp.Body)
responseString := string(body)
if responseString != testCase.expected {
t.Errorf("Expected %s but got %s", testCase.expected, responseString)
Expand Down
2 changes: 1 addition & 1 deletion protocol/lavasession/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var ( // Consumer Side Errors
UnreachableCodeError = sdkerrors.New("UnreachableCode Error", 666, "Should not get here.")
AllProviderEndpointsDisabledError = sdkerrors.New("AllProviderEndpointsDisabled Error", 667, "All endpoints are not available.") // a provider is completely unresponsive all endpoints are not available
MaximumNumberOfSessionsExceededError = sdkerrors.New("MaximumNumberOfSessionsExceeded Error", 668, "Provider reached maximum number of active sessions.")
MaxComputeUnitsExceededError = sdkerrors.New("MaxComputeUnitsExceeded Error", 669, "Consumer is trying to exceed the maximum number of compute uints available.")
MaxComputeUnitsExceededError = sdkerrors.New("MaxComputeUnitsExceeded Error", 669, "Consumer is trying to exceed the maximum number of compute units available.")
EpochMismatchError = sdkerrors.New("ReportingAnOldEpoch Error", 670, "Tried to Report to an older epoch")
AddressIndexWasNotFoundError = sdkerrors.New("AddressIndexWasNotFound Error", 671, "address index was not found in list")
LockMisUseDetectedError = sdkerrors.New("LockMisUseDetected Error", 672, "Faulty use of locks detected")
Expand Down
2 changes: 1 addition & 1 deletion testutil/e2e/lava_fullFlow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func TestLava(t *testing.T) {
timeout := time.Minute * 10

if deadline, ok := t.Deadline(); ok {
timeout = deadline.Sub(time.Now()).Round(10*time.Second)
timeout = time.Until(deadline).Round(10 * time.Second)
}

runE2E(timeout)
Expand Down

0 comments on commit b8f5076

Please sign in to comment.