Skip to content

Commit

Permalink
ci: fix wrong test case
Browse files Browse the repository at this point in the history
  • Loading branch information
joker1007 committed Oct 25, 2024
1 parent de6745e commit 14ba02b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ jobs:
fail-fast: false
matrix:
ruby:
- 2.7
- 3.0
- 3.1
- 3.2
- 3.3
os:
- ubuntu-latest
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ jobs:
fail-fast: false
matrix:
ruby:
- 2.7
- 3.0
- 3.1
- 3.2
- 3.3
os:
- windows-latest
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
Expand Down
24 changes: 12 additions & 12 deletions test/plugin/test_record_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def base_schema
"mode" => "REPEATED"
},
{
"name" => "utilisation",
"name" => "utilization",
"type" => "NUMERIC",
"mode" => "NULLABLE"
},
{
"name" => "bigutilisation",
"name" => "bigutilization",
"type" => "BIGNUMERIC",
"mode" => "NULLABLE"
}
Expand Down Expand Up @@ -69,20 +69,20 @@ def base_schema_with_new_column
"mode" => "REPEATED"
},
{
"name" => "utilisation",
"name" => "utilization",
"type" => "NUMERIC",
"mode" => "NULLABLE"
},
{
"name" => "bigutilization",
"type" => "BIGNUMERIC",
"mode" => "NULLABLE"
},
{
"name" => "new_column",
"type" => "STRING",
"mode" => "REQUIRED"
},
{
"name" => "bigutilisation",
"type" => "BIGNUMERIC",
"mode" => "NULLABLE"
}
]
end

Expand Down Expand Up @@ -114,12 +114,12 @@ def base_schema_with_type_changed_column
"mode" => "REPEATED"
},
{
"name" => "utilisation",
"name" => "utilization",
"type" => "NUMERIC",
"mode" => "NULLABLE"
},
{
"name" => "bigutilisation",
"name" => "bigutilization",
"type" => "BIGNUMERIC",
"mode" => "NULLABLE"
}
Expand Down Expand Up @@ -172,12 +172,12 @@ def test_format_one_convert_array_or_hash_to_json
time = Time.local(2016, 2, 7, 19, 0, 0).utc

formatted = fields.format_one({
"time" => time, "tty" => ["tty1", "tty2", "tty3"], "pwd" => "/home", "user" => {name: "joker1007", uid: 10000}, "argv" => ["foo", 42], "utilisation" => "0.837", "bigutilisation" => "0.837"
"time" => time, "tty" => ["tty1", "tty2", "tty3"], "pwd" => "/home", "user" => {name: "joker1007", uid: 10000}, "argv" => ["foo", 42], "utilization" => "0.837", "bigutilization" => "0.837"
})
assert_equal(
formatted,
{
"time" => time.strftime("%Y-%m-%d %H:%M:%S.%6L %:z"), "tty" => MultiJson.dump(["tty1", "tty2", "tty3"]), "pwd" => "/home", "user" => MultiJson.dump({name: "joker1007", uid: 10000}), "argv" => ["foo", "42"], "utilisation" => "0.837", "bigutilisation" => "0.837"
"time" => time.strftime("%Y-%m-%d %H:%M:%S.%6L %:z"), "tty" => MultiJson.dump(["tty1", "tty2", "tty3"]), "pwd" => "/home", "user" => MultiJson.dump({name: "joker1007", uid: 10000}), "argv" => ["foo", "42"], "utilization" => "0.837", "bigutilization" => "0.837"
}
)
end
Expand Down

0 comments on commit 14ba02b

Please sign in to comment.