Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix wrong test case #216

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading