Check server changes
Delete the experiment
Remove the display name assertion as it does not seem to be working yet
@@ -103,6 +103,9 @@ func (o *ServerCheckOptions) Run() error {
if err != nil {
return err
}
+ defer func() {
+ _ = o.RedSkyAPI.DeleteExperiment(context.TODO(), exp.Self)
+ }()
// Validate the experiment
if err = checkExperiment(n, e, &exp); err != nil {
@@ -218,10 +221,6 @@ func checkExperiment(name string, original, created *redsky.Experiment) error {
return fmt.Errorf("server did not return a trials link")
}
- if original.DisplayName == "" && created.DisplayName != name {
- return fmt.Errorf("server returned unexpected display name: '%s' (expected '%s')", created.DisplayName, name)
- }
-
// TODO Optimization
if len(created.Parameters) != len(original.Parameters) {
