Skip to content

Commit

Permalink
fix: e2e binary name for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
khalifaa55 committed Sep 16, 2024
1 parent e182287 commit 6c43d24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ type E2ETestCase struct {
}

func (e *E2ETestCase) BinaryPath() string {
binaryName := e.BinaryName
if runtime.GOOS == "windows" {
e.BinaryName += ".exe"
binaryName += ".exe"
}
return filepath.Join(e.TestDir, e.BinaryName)
return filepath.Join(e.TestDir, binaryName)
}

func (e *E2ETestCase) InstallGoModules() {
Expand Down
2 changes: 1 addition & 1 deletion internal/lido/contracts/csfeedistributor/rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func cumulativeFeeShares(treeCID string, nodeID *big.Int) (*big.Int, error) {
nodeOperatorId, err1 := convertTreeValuesToBigInt(item.Value[0])
shares, err2 := convertTreeValuesToBigInt(item.Value[1])
if err1 != nil || err2 != nil {
log.Debugf("Error converting values:", err1, err2)
log.Debugf("Error converting values: %v, %v", err1, err2)
continue
}
if nodeOperatorId.Cmp(nodeID) == 0 {
Expand Down

0 comments on commit 6c43d24

Please sign in to comment.