Skip to content

Commit

Permalink
fix(tests): Update problems with variables name
Browse files Browse the repository at this point in the history
  • Loading branch information
Xoan Mallon Moure committed Dec 22, 2020
1 parent b747094 commit 5c8023a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/results/results_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func resultEqualWithoutTimestamp(expected Result, obtained Result) bool {
}

func TestCheckNumberCorrect(t *testing.T) {
expectedResult, err := NewResult(numberToUseForCheck, 0, 51515151, 1, 0)
expectedResult, err := NewResult(numberToUseForCheck, 0, 51515151, actualLotteryDrawStatusCode, 0)
if err != nil {
log.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/results/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ type Result struct {

// NewResult allows to create a Result type struct providing all the information for it
func NewResult(numero string, premio int, timestamp int, status int, error int) (*Result, error) {
numero_int, err := strconv.Atoi(numero)
numeroInt, err := strconv.Atoi(numero)
if err != nil {
return nil, err
}
return &Result{numero_int, premio, timestamp, status, error}, nil
return &Result{numeroInt, premio, timestamp, status, error}, nil
}

// LotteryDrawStatus which contain information about
Expand Down

0 comments on commit 5c8023a

Please sign in to comment.