hunk.code_window: 		if err := s.client.Del(key).Err(); err != nil {
   			mlog.Error("Redis failed to remove key " + key + " Error: " + err.Error())
   		}
   	}
  
hunk.labels: keep replace replace replace keep keep
hunk.after_edit: 			if err := s.client.Del(key).Err(); err != nil {
   				mlog.Error("Redis failed to remove key " + key + " Error: " + err.Error())
   			}
   		}()
  
hunk.file_path: store/redis_supplier_roles.go
hunk.type: replace
file: package model
  
  import (
  	"testing"
  
  	"github.com/stretchr/testify/assert"
  )
  
  // This is a test to ensure that we don't accidentally add more permissions than can fit
  // in the database column for role permissions.
  func TestPermissionsLength(t *testing.T) {
  	permissionsString := ""
  	for _, permission := range ALL_PERMISSIONS {
  		permissionsString += " " + permission.Id
  	}
  
  	assert.True(t, len(permissionsString) < 4096)
  }
  