You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
493 B

package framework
import "testing"
func TestUseRustVolumeServer(t *testing.T) {
t.Setenv("VOLUME_SERVER_IMPL", "rust")
if !useRustVolumeServer() {
t.Fatalf("expected rust selection when VOLUME_SERVER_IMPL=rust")
}
t.Setenv("VOLUME_SERVER_IMPL", "go")
if useRustVolumeServer() {
t.Fatalf("expected go selection when VOLUME_SERVER_IMPL=go")
}
t.Setenv("VOLUME_SERVER_IMPL", "")
if useRustVolumeServer() {
t.Fatalf("expected go selection when VOLUME_SERVER_IMPL is unset")
}
}