style(ax): rename loop variable e→envEntry for AX naming compliance
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
3073c019f8
commit
661d37c5c1
1 changed files with 9 additions and 9 deletions
|
|
@ -76,9 +76,9 @@ func TestFreePort_Ugly_ReturnsUsablePort(t *testing.T) {
|
|||
func TestServerEnv_Good_SetsHIPVisibleDevices(t *testing.T) {
|
||||
env := serverEnv()
|
||||
var hipVals []string
|
||||
for _, e := range env {
|
||||
if core.HasPrefix(e, "HIP_VISIBLE_DEVICES=") {
|
||||
hipVals = append(hipVals, e)
|
||||
for _, envEntry := range env {
|
||||
if core.HasPrefix(envEntry, "HIP_VISIBLE_DEVICES=") {
|
||||
hipVals = append(hipVals, envEntry)
|
||||
}
|
||||
}
|
||||
assert.Equal(t, []string{"HIP_VISIBLE_DEVICES=0"}, hipVals)
|
||||
|
|
@ -88,9 +88,9 @@ func TestServerEnv_Good_FiltersExistingHIPVisibleDevices(t *testing.T) {
|
|||
t.Setenv("HIP_VISIBLE_DEVICES", "1")
|
||||
env := serverEnv()
|
||||
var hipVals []string
|
||||
for _, e := range env {
|
||||
if core.HasPrefix(e, "HIP_VISIBLE_DEVICES=") {
|
||||
hipVals = append(hipVals, e)
|
||||
for _, envEntry := range env {
|
||||
if core.HasPrefix(envEntry, "HIP_VISIBLE_DEVICES=") {
|
||||
hipVals = append(hipVals, envEntry)
|
||||
}
|
||||
}
|
||||
assert.Equal(t, []string{"HIP_VISIBLE_DEVICES=0"}, hipVals)
|
||||
|
|
@ -108,9 +108,9 @@ func TestServerEnv_Ugly_MultipleHIPEntries(t *testing.T) {
|
|||
t.Setenv("HIP_VISIBLE_DEVICES", "2,3")
|
||||
env := serverEnv()
|
||||
var hipVals []string
|
||||
for _, e := range env {
|
||||
if core.HasPrefix(e, "HIP_VISIBLE_DEVICES=") {
|
||||
hipVals = append(hipVals, e)
|
||||
for _, envEntry := range env {
|
||||
if core.HasPrefix(envEntry, "HIP_VISIBLE_DEVICES=") {
|
||||
hipVals = append(hipVals, envEntry)
|
||||
}
|
||||
}
|
||||
assert.Equal(t, []string{"HIP_VISIBLE_DEVICES=0"}, hipVals)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue